import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import tsconfigPaths from 'vite-tsconfig-paths';
import * as path from 'node:path';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react(), tsconfigPaths()],
  server: {
    host: true,
    port: 8989,
    open: true,
  },
  resolve: {
    alias: {
      events: path.resolve(__dirname, 'node_modules/events/'),
    }
  }
});
